Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
13 lines (9 loc) · 297 Bytes

6.4.3 - swoole_atomic->sub.md

File metadata and controls

13 lines (9 loc) · 297 Bytes

swoole_atomic->sub

减少计数

function swoole_atomic->sub(int $sub_value = 1)
  • $sub_value要减少的数值,默认为1
  • $sub_value必须为正整数
  • $sub_value与原值相减如果低于0将会溢出,高位数值会被丢弃
  • sub方法操作成功后返回结果数值